

import React from 'react';

import { Link } from 'react-router-dom'


import { renderRoutes } from 'react-router-config'
// import Router from '../router/Router';




// import { HashRouter } from 'react-router-dom'





function HomeH1(props) {

    return (
        <h1 ><Link to={props.to}> 这是 {props.vlaue}</Link> </h1>
    )
}




function Home(props) {


    console.log(props);
    return (
      
        <div>
            <HomeH1 vlaue="home页" to='/home' ></HomeH1>
            <HomeH1 vlaue='登入页' to="/login" ></HomeH1>
            <HomeH1 vlaue='详情页..' to='/details' ></HomeH1>
            {renderRoutes(props.route.children)}
        </div>
         

      

     


    )
}

//const home=<Home />;

// const home1= <HomeH1/>



export {
    Home,
    HomeH1
};
